package com.base.service.system.ao;

import java.io.Serializable;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import com.gitee.magic.core.valid.annotation.Format;
import com.gitee.magic.core.valid.annotation.Format.FormatType;
import com.gitee.magic.core.valid.annotation.Length;
import com.gitee.magic.core.valid.annotation.NotNull;
import com.gitee.magic.core.valid.annotation.number.LongValid;

/**
 * @author start
 */
@Getter@Setter@ToString
public class RoleAO implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Schema(description="roleId")
    @LongValid
    private Long id;

    @Schema(description="名称")
    @NotNull
    @Length(max=32)
    private String name;
    
    @Schema(description="编码")
    @NotNull
    @Length(max=32)
	private String code;

    @Schema(description="授权列表")
    @Format(type=FormatType.JSONArrayLong)
    private List<Long> authIds;

}
